home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
NTUMIN10.ARJ
/
README.DOC
< prev
next >
Wrap
Text File
|
1992-03-12
|
7KB
|
239 lines
NTUMIN LOGIC MINIMIZATION
-------------------------
This readme file gives a brief description of the Logic Minimization program
(NTUMIN ver 1.0) developed for IBM PC XT/AT compatible. This program was
developed using C language, and had been compiled under Turbo C (Ver 2.0). It
can also be compiled under VAX C with slight modification.
The NTUMIN is intended for users who has an understanding of Boolean
Algebra and Karnaugh map. The contents of this readme file is as follows:
1. Copyright Messages
2. Files Distribution
3. Program Execution
4. Outputs Verification
5. Error Messages
6. Contact
1. COPYRIGHT MESSAGES
----------------------
Copyright (c) 1992. All Rights Reserved. Nanyang Technological
University.
You are free to use, copy and distribute this software and its
documentation providing that:
NO FEE IS CHARGED FOR USE, COPYING OR DISTRIBUTION.
IT IS NOT MODIFIED IN ANY WAY.
THE COPYRIGHT NOTICE APPEAR IN ALL COPIES.
This program is provided "AS IS" without any warranty, expressed or
implied, including but not limited to fitness for any particular
purpose.
2. FILE DISTRIBUTION
----------------------
NTUMIN.EXE
NTUMIN.C
LOGMIN_A.C
LOGMIN_B.C
LOGMIN_C.C
LOGMIN_D.C
LOGMIN_E.C
LOGMIN_F.C
LOGMIN_G.C
LOGMIN_H.C
FPRTIN.C
FPRTOUT.C
READF.C
READK.C
REDUCE.C
EXIST.C
POWER.C
ADJACENC.C
ADJACENT.C
CPT.C
SSM.C
NCUBES.C
WI_GEN.C
SOUND.C
MISC.DIR ---------------------- SORTER.C
README.DOC SORTING.C
IN.DAT COMPARE.C
9VAR.DAT CHECKOUT.C
DATA1.DAT CONVERT.C
NTUMIN.PRJ COMPARE.EXE
SORTER.EXE
CONVERT.EXE
CHECKOUT.EXE
COMPARE.PRJ
CHECKOUT.PRJ
CONVERT.PRJ
■ NTUMIN.EXE is the actual logic minimization program.
■ COMPARE.EXE is for verifying whether the output generated is
correct. It can only be used for inputs that are
ON array only.
■ CHECKOUT.EXE is for verifying correctness of output generated.
It is slower than COMPARE, but it allows input with
DC array.
■ SORTER.EXE is for sorting the input cubes in '01X' order before
minimization.
■ CONVERT.EXE is for converting output generated by VAX C program
to one compatible with IBM PC.
3. PROGRAM EXECUTION
---------------------
Memory requirement for execution of the NTUMIN Logic Minimization program
depends very much on the input data. Therefore, to be sure, it is recommended that
execution be done on DOS level and not in any DOS shell or with any other
resident program running in parallel.
To run the program, simply enter NTUMIN
There are 8 choices of algorithms to choose from. The next screen allows you
to choose either mode of data entry or exit the program.
Keyboard Data Entry
-------------------
Choose option 1 for keyboard data entry and the program will prompt you to
enter number of variables (max. 255) follow by the ON array and DC array.
ON array - minterms or product terms having value of '1' in the karnaugh map.
DC array - minterms or product terms having value of 'X' in the karnaugh map.
When entering ON-array and DC array, the program will prompt for the number
of cubes (minterms or product terms) follow by each individual cube. Blanks
should not be inserted when entering the cubes.
Examples
--------
Enter cube number 1 -> 0100
and NOT Enter cube number 1 -> 0100
Enter cube number 1 -> 0 1 0 0
For keyboard data entry, whatever is entered from the keyboard is saved in
a default file "IN.DAT".
User can name another output file to contain the output or simply hit <ENTER>
to take the default as "OUT.DAT".
Data File Entry
---------------
Choose option for data file input and the program will ask for input filename
to read the data from and output filename to write the output to. The default
are "IN.DAT" and "OUT.DAT" respectively.
The format for the input data file is as follows:
4 ──────────── number of variables
4 ──────────── number of ON cubes
0100 ──────────── ON cube number 1
0X11 ──────────── ON cube number 2
X001 ──────────── ON cube number 3
1111 ──────────── ON cube number 4
2 ──────────── number of DC cubes
0000 ──────────── DC cube number 1
XX00 ──────────── DC cube number 2
NOTE : ■ There should be no leading blank lines before the number of
------ variables.
■ No blanks lines or spaces should be inserted between the cubes.
4. OUTPUTS VERIFICATION
------------------------
The COMPARE.EXE and CHECKOUT.EXE programS can be used to verify the output
generated. However, the output file need to be edited to a form similar to
the input file as shown in the example below:
Example
-------
Input File Edited Output File
---------- ------------------
4 4
8 4
0100 X100
0101 01X1
0111 100X
1000 1X11
1001
1011
1100 Minterms generation time = ---
1111 Actual minimization time = ---
0 Cube count = ---
Runtime memory usage = ---
NOTE : COMPARE can only be used for input that has only ON array cubes.
------
5. ERROR MESSAGES
------------------
■ Error opening file, in.dat.
-- File specified as input file cannot be found in the default
directory or could be corrupted.
■ Invalid character(s) input.
-- Cube entery consists of character(s) other than '0', '1', 'x' or
'X'.
■ Invalid valid number of variables
-- Cube entry inconsistent with the number of variables entry.
■ Maximum number of minterms exceeded!
-- Minterms generated exceeded the maximum limit of 65535.
■ Number of variables exceeded maximum limit of 255 in input file.
-- Number of variables entry in data input file greater than 255.
■ Out of memory -- READF, *temp.
-- Insufficient memory space when program tries to allocate space
for pointer *temp.
■ Product term too hugh.
-- Product term generated exceeded the limit of 65536 minterms. That
is, the product term has more than 16 X's.
6. CONTACT
-----------
NTUMIN is written by Eng-Huat Ong and Kian-Mong Low.
If you find NTUMIN fast, easy, and useful, a note or comment would be
appreciated. Please send to:
Boon-Tiong Tan or Othman Bin Ahmad
School of EEE
Nanyang Technological University
Nanyang Avenue
Singapore 2263
Republic of Singapore
IBM is a registered trademark of the International Business Machines
Corporation.
MS-DOS is a registered trademark of Microsoft Corporation.
Turbo C is a registered trademark of Borland International.
VAX is a registered trademark of Digital Equipment Corporation.